package ar.edu.unicen.exa.isistan.archassis.view.web;

import org.apache.velocity.VelocityContext;

import ar.edu.unicen.exa.isistan.archassis.ia.api.EvalResult;

public class CompleteClassVelocityThread extends AbstractVelocityThread{
	
	public CompleteClassVelocityThread(EvalResult evalResult) {
		super(evalResult);
	}

	@Override
	protected String getFileName() {
		return "completeClass.html";
	}

	@Override
	protected VelocityContext createContext(EvalResult evalResult)
			throws Exception {
		VelocityContext context = new VelocityContext();
		
		context.put("resultados", evalResult.getJavaClassCollector().getResult());
		context.put("sizeCumplido", evalResult.getJavaClassCollector().getResult().size());
		context.put("sizeSobrante", evalResult.getJavaClassCollector().getResultNoCumple().size());
		return context;
	}

	@Override
	protected String getTemplateName() {
		return SummaryExport.COMPLETECLASS_TEMPLATE;
	}

}
